package com.wx.business.course;


import java.util.Map;

import com.eachonline.service.GenericService;
import com.wx.model.OrderRecord;
import com.wx.model.OrderRecordExample;

/**
 * <p>
 *  服务类
 * </p>
 * @author wemo
 * @since 2018-08-11
 */
public interface OrderRecordService extends GenericService<OrderRecord, OrderRecordExample, String> {
	
	/**
	 * @param  goods_id  '课程id',
     * @param  seller_id '卖家id',
     * @param  buyer_id   '买家id',
     * @param  arc_name  '机构名称',
     * @param  order_name  '订单名称',
     * @param  order_desc  '订单描述',
     * @param  good_fee  '备注',
     * @param  order_fee  '0是未启用1是启用',
	 */
	public OrderRecord  createOrder(String sellerId,String buyerId ,String goodsId , String goodsPic, String orderNo,String arcName ,String orderName,String orderDesc,double goodsFee,double orderFee);
	
	/**
	 * 改变订单状态
	 * @param orderNo
	 * @param userId
	 * @param status
	 */
	public void  changeOrderStatus( String orderNo,String userId,int status);
	
	/**
	 * 查询订单根据ID
	 * @param sid
	 * @return
	 */
	public Map<String,Object>  selectOrderMapById( String sid);

}
